﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReaderExtractTool.Service
{
    public abstract class BaseService
    {
        /// <summary>
        /// 提取章节目录
        /// </summary>
        /// <param name="url"></param>
        /// <param name="title"></param>
        /// <returns></returns>
        public abstract List<Chapter> GetChapters(string url, ref string novelTitle);

        /// <summary>
        /// 提取章节内容
        /// </summary>
        /// <param name="chapter">章节目录信息</param>
        /// <param name="unnecessaryContentStart">文章不必要内容的开始字符，用于截取掉后续的内容</param>
        /// <returns></returns>
        public abstract string GetChapterContent(Chapter chapter, string unnecessaryContentStart);
    }
}
